import { RouteConfig } from 'vue-router';

export const IndexRouter: RouteConfig = {
  path: '/index',
    redirect: '/index/homepage',
      name: 'index',
        component: () => import('../../views/user/User.vue'),
          meta: {
          title: '个人主页'
                },
  children: [
    {
      path: 'homepage',
      name: 'HomePage',
      meta: {
        title: '个人主页'
      },
      component: () => import('../../views/homepage/HomePage.vue')
    },
    {
      path: 'course',
      name: 'Course',
      meta: {
        title: '我的课程'
      },
      component: () => import('../../views/course/Course.vue')
    },
    {
      path: 'exam',
      name: 'Exam',
      meta: {
        title: '考试系统'
      },
      component: () => import('../../views/exam/Exam.vue')
    },
    {
      path: 'aidevelopment',
      name: 'Aidevelopment',
      meta: {
        title: 'AI开发中心'
      },
      component: () => import('../../views/aidevelopment/Aidevelopment.vue')
    }]
}